package com.wuyan.wurpc.fault.tolerant;

import com.wuyan.wurpc.model.RpcResponse;

import java.util.Map;
import java.util.Objects;

/**
 * 容错策略
 */
public interface TolerantStrategy {

    /**
     * 容错
     */
    RpcResponse doTolerant(Map<String, Object> context, Exception e);

}
